<%@ page pageEncoding="UTF-8" contentType="text/html;" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
<head>
    <title>Test</title>
    <meta charset="UTF-8"/>
</head>
<body>
<h1>${headerMessage}</h1>

<h3>SPRING MVC TEST PROJESİ</h3>

<form:errors path="student.*"/>

<form action="${pageContext.request.contextPath}/submitAdmissionForm.html" method="post">
    <table cellspacing="0" cellpadding="" border="0">
        <tr>
            <td>İsim :</td>
            <td><input type="text" name="studentName"/></td>
        </tr>
        <tr>
            <td>Hobi :</td>
            <td><input type="text" name="studentHobby"/></td>
        </tr>
        <tr>
            <td>GSM :</td>
            <td><input type="text" name="studentMobile"/></td>
        </tr>
        <tr>
            <td>D.Tarihi :</td>
            <td><input type="text" name="studentDOB"/></td>
        </tr>
        <tr>
            <td>Cv :</td>
            <td>
                <select name="studentSkills" multiple>
                    <option value="Java Core">Java Core</option>
                    <option value="Spring Core">Spring Core</option>
                    <option value="Spring MVC">Spring MVC</option>
                    <option value="Spring MVC">Hibernate</option>
                </select>
            <td>
        </tr>
    </table>
    <table>
        <tr>
            <td>Adres :</td>
            <hr />
        </tr>
        <tr>
            <td>Ülke: <input type="text" name="studentAddress.country"/></td>
            <td>Şehir: <input type="text" name="studentAddress.city"/></td>
            <td>Cadde: <input type="text" name="studentAddress.street"/></td>
            <td>P.Kodu:<input type="text" name="studentAddress.pincode"/></td>
        </tr>
        <tr>
            <td><input type="submit" value="Gönder"/></td>
        </tr>
    </table>
</form>
</body>
</html>